package Chapter8Test;/*12-29
1.声明ball类，描述球的坐标、直径、颜色、移动方向、动力和速度等属性，提供draw(Graphics)方法，以实例的坐标、直径、颜色等属性画球
2.画出若干2D风格的彩色弹弹球，每个球获得大小不等的初始动力和速度，运动方向也各不相同，运行过程中速度逐渐减小，双击它，使它再获动力
3.设计球属性设置对话框，添加若干球，设置每个球的属性
4.将每个球的属性写入对象文件保存，再次读取，演示动画
*/

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

public class BallCanvas extends Canvas implements ActionListener, MouseListener {
   // private Ball[] balls; //球的数量
    //private int[] colors={}; 颜色的数量 "红色", "橙色", "黄色", "绿色", "蓝色", "紫色", "黑色"

    public BallCanvas() {

        this.setBackground(Color.white);


    }

    public void paint(Graphics p) {

    }

    @Override
    public void actionPerformed(ActionEvent event) {

    }

    @Override
    public void mouseClicked(MouseEvent event) {

    }

    @Override
    public void mousePressed(MouseEvent e) {
    }

    @Override
    public void mouseReleased(MouseEvent e) {
    }

    @Override
    public void mouseEntered(MouseEvent e) {
    }

    @Override
    public void mouseExited(MouseEvent e) {
    }
}
